﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Web;
using ModelLayer;
using ShopKart.Common;

namespace ShopKart.Areas.Admin.Models
{
    public class ProductVm
    {
        public IEnumerable<Product> Products { get; set; }
        public IEnumerable<Category> Categories { get; set; }

        public long ProductId { get; set; }

        [Required(ErrorMessage = "Please Select Product Category")]
        [Display(Name = "Category")]
        public long? CategoryId { get; set; }

        [Display(Name = "Product Name")]
        [Required(ErrorMessage = "Please Enter Product Name")]
        public string ProductName { get; set; }

        public string Description { get; set; }

        public decimal? Weight { get; set; }

        [Required(ErrorMessage = "Please Enter Price")]
        public decimal? Price { get; set; }

        public HttpPostedFileBase ProductImage { get; set; }
        public string Image { get; set; }

    }
}
